package client.bean;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Member implements IsSerializable {
	private int id;
	private String name;
	private String email;
	private Map<Date, Date> confirmedDates;

	public Member(String name, String email) {
		confirmedDates = new HashMap<Date, Date>();
		this.name = name;
		this.email = email;
	}

	public Member() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Map<Date, Date> getConfirmedDates() {
		return confirmedDates;
	}

	public void addConfirmedDates(Date startDate, Date endDate) {
		this.confirmedDates.put(startDate, endDate);
	}
}
